const Http = require('./http');
const Api= require('./api');

class MessageService {
  static getMsgList(openid,page) {
    return Http.request({
      url: Api.getMsgList,
      data: {openid:openid,page:page}
    });
  }

  static getMsgDetail(openid,msgid,status) {
    return Http.request({
      url: Api.getMsgDetail,
      data: {
        openid: openid,
        msg_id: msgid,
        status: status
      }
    });
  }
}
module.exports = MessageService;